<%--
  Created by IntelliJ IDEA.
  User: 86188
  Date: 2022/6/10
  Time: 10:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>帖子详情 </title>
</head>
<body>
<h2>欢迎 用户 ：${user.userName}</h2>
<a href="/logout" role="button">退出登录</a>

<div>
    <c:if test="${not empty postList}">
        <h2>帖子详情</h2>
        <c:forEach items="${postList}" var="post">
            <h2>${post.postTitle}</h2>
            <span>${post.user.userName}</span>
            <span>${post.createTime}</span>
            <span>${post.topic.topicTitle}</span>
        </c:forEach>
    </c:if>
</div>
</body>
</html>
